﻿using ShaderCompiler.Core;

namespace ShadersCS
{
	public abstract class BaseVS : Base
	{
		public double simulateSize;

		[ShaderMethod(ShaderMethodTypes.VS)]
		public void mainVS()
		{
			Position_VSPS = new Vector4(Position_VS, 1);

			#if D3D10 || D3D9 || XNA
			Vector2 uv = new Vector2(Texcoord_VS.x, 1.0-Texcoord_VS.y);
			#endif

			#if D3D9 || XNA
			Texcoord_VSPS = uv + (simulateSize * .5);
			#endif

			#if D3D10
			Texcoord_VSPS = uv;
			#endif

			#if GL3 || GL2 || GLES2
			Texcoord_VSPS = Texcoord_VS;
			#endif
		}
	}
}
